<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<script>
  // 构造函数
  function Person(name,age){
    this.name = name;
    this.age = age;
    this.sayHi = function (){
      console.log(`hello; my name is ${this.name},now ${this.age}`)
    }
  }

  const p1 = new Person('wang',14);
  const p2 = new Person('yang',18);

  console.log(p1 === p2)





</script>
</body>
</html>